/* 定义字体图标 */
@font-face {
    font-family: 'icomoon';
    src: url('/static/resource/fonts/icomoon.eot?soo6h5');
    src: url('/static/resource/fonts/icomoon.eot?soo6h5#iefix') format('embedded-opentype'),
        url('/static/resource/fonts/icomoon.ttf?soo6h5') format('truetype'),
        url('/static/resource/fonts/icomoon.woff?soo6h5') format('woff'),
        url('/static/resource/fonts/icomoon.svg?soo6h5#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* 去除所有元素的初始内外边局,设置所有元素过渡300ms */
* {
    padding: 0;
    margin: 0;
    transition: .3s all ease-in-out;
    font-family: sans-serif;
    scroll-behavior: smooth;
    color: white;
}

/* 设置body的最小高度为窗口高度 */
body {
    min-height: 100vh;
}

/* 将背景canvas的z轴设置在最底层 */
#background {
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
}

/* 针对input的简单初始化 */
.input_text {
    outline: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.8em;
    font-weight: 400;
}

/* 针对 按钮(input:btn, button) 的简单初始化 */
.btn {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    text-align: center;
    cursor: pointer;
    font-family: 'icomoon', sans-serif;
}

.btn:hover {
    transform: scale(1.05, 1.05);
}

.btn:active {
    transform: scale(0.95, 0.95);
}

/* 小卡片的简单初始化 */
.flex-card {
    display: flex;
    gap: 30px;
    padding: 30px;
    border-radius: 8px;
}

/* 提示框 */
#show-info-box {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    gap: 10px;
    z-index: 9999;
    position: fixed;
    right: 0;
    top: 0;
    padding: 10px;
}

#show-info-box p {
    width: max-content;
    padding: 5px 10px;
    border-radius: 8px;
    color: white;
    font-weight: 100;
    font-size: 0.85em;
    text-shadow: rgba(200, 200, 200) 0 0 15px;
    margin-top: 50px;
    opacity: 0;
    transition: .5s;
    pointer-events: all;
    cursor: pointer;
}

#show-info-box p::before {
    font-weight: 700;
    font-size: 1em;
    background-size: 100% 100%;
    font-family: 'icomoon', Sans-serif;
}

/* 在此添加show-info新类型的css */
#show-info-box p[type="normal"] {
    background: rgba(45, 45, 255);
    box-shadow: 0 0 5px 1px rgba(45, 45, 200);
}

#show-info-box p[type="normal"]::before {
    content: ' 提示：';
    color: rgba(210, 210, 255);
}

#show-info-box p[type="success"] {
    background: rgba(45, 225, 45);
    box-shadow: 0 0 5px 1px rgba(45, 200, 45);
}

#show-info-box p[type="success"]::before {
    content: ' 成功：';
    color: rgba(210, 255, 210);
}

#show-info-box p[type="warning"] {
    background: rgba(255, 190, 67);
    box-shadow: 0 0 5px 1px rgba(200, 100, 70);
}

#show-info-box p[type="warning"]::before {
    content: ' 警告：';
    color: rgba(255, 255, 0);
}

#show-info-box p[type="error"] {
    background: rgba(255, 45, 45);
    box-shadow: 0 0 5px 1px rgba(200, 45, 45);
}

#show-info-box p[type="error"]::before {
    content: ' 错误：';
    color: rgba(255, 210, 210);
}

#show-info-box p:hover::before {
    content: '复制并关闭：';
}

#show-info-box p.show-info-open {
    margin-top: 0;
    opacity: 1;
}

#show-info-box p.show-info-close {
    margin-top: -50px;
    opacity: 0;
    transition: .2s;
}

#show-info-box p.show-info-click {
    margin-top: 0;
    transform: scale(0.1, 0.1);
    transition: 0.2s;
    opacity: 0;
}

a {
    width: 100%;
    color: rgb(0, 150, 0);
    transition: none;
}

a:hover {
    color: rgb(0, 215, 0);
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading {
    animation: loading 1s infinite linear !important;
    font-family: icomoon !important;
    display: block !important;
    width: 1em !important;
    height: 1em !important;
    color: rgb(0, 180, 0) !important;
    font-weight: 400 !important;
    text-shadow: rgb(0, 50, 0) 0 0 20px !important;
}

.flex-box {
    display: flex;
    border-radius: 8px;
    flex-direction: column;
    width: 95%;
    backdrop-filter: blur(10px);
    gap: 10px;
    box-shadow: 0 0 20px 1px rgb(17, 17, 17);
    padding: 10px 15px;
}
.flex-box h1 {
    letter-spacing: 0.1em;
    color: rgb(0, 180, 0);
    font-weight: 800;
    font-size: 2em;
    text-shadow: rgb(0, 50, 0) 0 0 20px;
}

.flex-out {
    display: flex;
    width: 95%;
}